
const bindName = (name) => {
	if(!name) return '--'

	let len = name.length - 1
	let starStr = ''
	for (let i = 0; i < len; i++) {
		starStr = starStr + '*'
	} 
	
    return name.substr(0,1) + starStr
}

export default bindName
